#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H

#include <QtGui/QDialog>

namespace Ui {
    class OptionsDialog;
}

class OptionsDialog : public QDialog {
    Q_OBJECT
public:
    OptionsDialog(QWidget *parent = 0);
    ~OptionsDialog();

    QString getEmail() const;
    void setEmail(QString email);
    QString getPassword() const;
    void setPassword(QString password);
    int getTimeout() const;
    void setTimeout(int timeout);

    bool getUseProxy() const;
    void setUseProxy(bool use);
    QString getProxyHost() const;
    void setProxyHost(QString host);
    int getProxyPort() const;
    void setProxyPort(int port);

    bool getUseProxyAuth() const;
    void setUseProxyAuth(bool use);
    QString getProxyUser() const;
    void setProxyUser(QString user);
    QString getProxyPassword() const;
    void setProxyPassword(QString password);

protected:
    void changeEvent(QEvent *e);
private:
    Ui::OptionsDialog *m_ui;
signals:
    void saveSettings();
public slots:
    void updateActive();
    void updateSettings();
};

#endif // OPTIONSDIALOG_H
